<!--
 * @Descripttion: 
 * @version: 
 * @Author: xyh
 * @Date: 2020-11-11 16:04:04
 * @LastEditTime: 2020-12-04 15:14:10
-->
<template>
	<view class="content">
		<image class="logo" src="/static/logo.png"></image>
		<view class="text-area">
			<u-button type="success" @click="test" :ripple="true" shape="circle">成功按钮</u-button>
		</view>
	</view>
</template>

<script>
	import common from '@/common/interceptor.js'
	export default {
		data() {
			return {
				title: 'Hello'
			}
		},
		onLoad() {
			console.log(common);
		},
		methods: {
			test(){
				console.log('os',this.$u.os());
				console.log('sys',this.$u.sys());
				this.$u.api.getHomeData().then(res=>{
					this.$u.toast('请求成功');
					console.log('首页数据',res);
				})
				// this.$u.get('https://www.x-y-h.cn:6060/tag/list', {}).then(res => {
				// 				console.log('首页数据',res);
				// 			});
				// this.$u.get('https://www.x-y-h.cn:6060/article/list', {
				// 	page:1,
				// 	pageSize:10
				// }).then(res => {
				// 				console.log('首页数据',res);
				// 			});
			}
		}
	}
</script>

<style>
	.content {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}

	.logo {
		height: 200rpx;
		width: 200rpx;
		margin-top: 200rpx;
		margin-left: auto;
		margin-right: auto;
		margin-bottom: 50rpx;
	}

	.text-area {
		display: flex;
		justify-content: center;
	}

	.title {
		font-size: 36rpx;
		color: #8f8f94;
	}
</style>
